<?php

use think\migration\Migrator;
use think\migration\db\Column;

class CreateWechatTable extends Migrator
{
    public function up()
    {
         $this->table("user")
            ->addColumn("nickname",'string',['limit'=>30])
            ->addColumn("username",'string',['limit'=>32])
            ->addColumn("password",'string',['limit'=>32])
            ->addColumn("create_time",'integer')
            ->save();
    }

    public function down()
    {
        $this->table("user")->drop();
    }
}
